home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / MahJongSolitaire.swf / scripts / frame_1 / PlaceObject2_9_1 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2005-08-04  |  371 b   |  19 lines

  1. onClipEvent(enterFrame){
  2.    numTotal = _root.getBytesTotal();
  3.    numLoaded = _root.getBytesLoaded();
  4.    numPercent = Math.floor(numLoaded * 100 / numTotal);
  5.    if(numPercent < 10)
  6.    {
  7.       strL = "0" + numPercent;
  8.    }
  9.    else
  10.    {
  11.       strL = numPercent;
  12.    }
  13.    _root.strLoaded = strL + "%";
  14.    if(numPercent >= 99)
  15.    {
  16.       _root.play();
  17.    }
  18. }
  19.